import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'

Vue.use(Vuex)

const initPlugin = store => {
}

const store = new Vuex.Store({
  modules: {

  },
  state: {
    carts:[{
      name: '去内脏八爪鱼',
      prize: 598.00,
      status: "1",
      img: "https://img13.360buyimg.com/n7/jfs/t1/156044/37/8082/528791/601369c2E3e5ab1f1/cdc30c8f82d78b1e.jpg",
      nums: 1
    }, {
      name: '大虾',
      prize: 638.90,
      status: "2",
      img: "https://img12.360buyimg.com/n7/jfs/t1/168477/39/21159/927428/6087c649E0ac7ebce/b87f6b39346eb746.png",
      nums: 2
    }
    ],
    tableOutData: [
      {name: '自定义name', key: 'date', width: '50%'},
      {name: '姓名', key: 'name', width: '50%'},
      {name: '地址', key: 'address', width: '200%',},
    ],
    checkBoxText:{
      cities : ['shanghaitan', 'beijing', 'guangzhou', 'shenzhen'],
      checkedCities: ['shanghaitan', 'beijing'],
    },
    info: [],
    arraryListTemp: [
      {
        id:'',
        checkBoxText:{
          checkBoxText:[],
          checkedBox:[]
        }
      }
    ],
    widgets:[],
    groupID:'',

  },
  plugins: [initPlugin],
  actions,
  mutations,
  getters,
})

export default store
